package com.tourism.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName("tour_route")
public class TourRoute {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String routeName;

    private String description;

    private BigDecimal totalDuration;

    private Date createTime;

    private Date updateTime;

    // 添加景点列表字段，并标记为非数据库字段
    @TableField(exist = false)
    private List<TourRouteSpot> spots;
}